package com.centaline.androidsalesblog.api.usercenter;

import com.centaline.androidsalesblog.api.UserCenterApi;
import com.centaline.androidsalesblog.constants.AppConstant;
import com.centaline.androidsalesblog.model.responseobject.ReservationRo;
import com.centanet.framework.interfaces.IResponseListener;

/**
 * 约看列表
 * Created by guilin on 16/4/23.
 */
public class ReservationListApi extends UserCenterApi<ReservationRo> {

    private int firstIndex;
    private int count = 10;
    private String estateCode;
    private String staffNo;
    private boolean isReserve;
    private String postId;

    public ReservationListApi(Class<?> tag, Class<ReservationRo> aClass, IResponseListener<ReservationRo> iResponseListener) {
        super(tag, aClass, iResponseListener);
    }

    public void setEstateCode(String estateCode) {
        this.estateCode = estateCode;
    }

    public void setStaffNo(String staffNo) {
        this.staffNo = staffNo;
    }

    public void setReserve(boolean reserve) {
        isReserve = reserve;
    }

    public void setPostId(String postId) {
        this.postId = postId;
    }

    public void setCount(int count) {
        this.count = count;
    }

    @Override
    protected void setParams() {
        putParams("FirstIndex", firstIndex);
        putParams("Count", count);
        putStringParams("UserId", AppConstant.UserId);
        putStringParams("CityCode", AppConstant.CityCode);
        putStringParams("estateCode", estateCode);
        putStringParams("StaffNo", staffNo);
        putParams("IsReserve", isReserve);
        putStringParams("PostID", postId);
    }

    @Override
    protected String getPath() {
        return "ReservationRequest";
    }
}
